<template>
  <div id="app">
    <router-view></router-view>
  </div>
</template>

<script>
import { mapMutations } from 'vuex'
import '@/style/theme.css'

export default {
  name: 'App',
  methods: {
    ...mapMutations(['initTheme'])
  },
  created () {
    // 初始化主题
    this.initTheme()
  }
}
</script>

<style>
#app {
  height: 100vh;
  width: 100vw;
}
</style>
